package com.jishaokang.dao;

import com.jishaokang.model.dto.Live;
import com.jishaokang.model.vo.LiveVO;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Created by NANA_Final on 2019/6/21.
 */
@Repository
public interface LiveDAO {
    List<LiveVO> select(Live live);

    int insert(Live live);

    void delete(int liveId);

    int selectTotal(Live live);

    LiveVO selectByLiveId(Live live);

    void updateUrl(Live live);

    void updateLiveImage(Live live);

    void updateWatchTotal(Live live);

    LiveVO selectByTeacherId(Live live);

    void deleteByTeacherId(int teacherId);
}
